package com.icebartech.base.modules.common.facade.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.icebartech.base.modules.common.facade.SmsSendFacade;
import com.icebartech.base.modules.common.service.SmsSendService;
import com.icebartech.core.enums.CommonResultCodeEnum;
import com.icebartech.core.vo.ResponseData;

@Service
public class SmsSendFacadeImpl implements SmsSendFacade {
	
	@Autowired
	private SmsSendService smsSendService;

	@Override
	public ResponseData<Boolean> sendSmsByMobile(String mobile, String vars, String projectCode) {
		boolean flag = smsSendService.sendSmsByMobile(mobile, vars, projectCode);
		return ResponseData.builder(flag, CommonResultCodeEnum.SUCCESS);
	}

}
